package com.yuan.dao.autofetch;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.yuan.fetch.AutoFetch;

public interface AutoFetchDao {

	public void save(AutoFetch autoFetch) throws DataAccessException;
	
	public List<AutoFetch> readAll() throws DataAccessException;
	
	public List<AutoFetch> readNeedFetch(String ownSign, int fetchNum, int queueNum, String condition) throws DataAccessException ;
	
	public void updateStatus(Integer id,Boolean isFetched) throws DataAccessException ;
	
	public void updateAllStatus(Boolean isFetched) throws DataAccessException;
}
